package com.tepth.maintenancesystem.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by LHQ on 2016/12/9.
 */

public class VehicleMaintain implements Serializable {

    private int id;
    private String vehicleNumber;
    private String routeName;
    private String deptName;
    private String shiftGroupName;
    private String maintenanceName;
    private String maintenanceTypeCode;
    private String maintenanceTypeName;
    private String workStatusCode;
    private String workStatusName;
    private String planStartTime;
    private String planEndTime;
    private String actualStartTime;
    private String actualEndTime;

    private String completedPersonName;
    private String completedTime;

    public VehicleMaintain() {

    }

    public VehicleMaintain(JSONObject jsonObject) throws Exception {
        this.id = jsonObject.getInt("Id");
        this.vehicleNumber = jsonObject.getString("VehicleNumber");
        this.routeName = jsonObject.getString("RouteName");
        this.deptName = jsonObject.getString("DeptName");
        this.shiftGroupName = jsonObject.getString("ShiftGroupName");
        this.maintenanceName = jsonObject.getString("MaintenanceName");
        this.maintenanceTypeCode = jsonObject.getString("MaintenanceTypeCode");
        this.maintenanceTypeName = jsonObject.getString("MaintenanceTypeName");
        this.workStatusCode = jsonObject.getString("WorkStatusCode");
        this.workStatusName = jsonObject.getString("WorkStatusName");
        this.planStartTime = jsonObject.getString("PlanStartTime");
        this.planEndTime = jsonObject.getString("PlanEndTime");
        this.actualStartTime = jsonObject.getString("ActualStartTime");
        this.actualEndTime = jsonObject.getString("ActualEndTime");
        this.completedPersonName= jsonObject.getString("CompletedPersonName");
        this.completedTime= jsonObject.getString("CompletedTime");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getVehicleNumber() {
        return vehicleNumber;
    }

    public void setVehicleNumber(String vehicleNumber) {
        this.vehicleNumber = vehicleNumber;
    }

    public String getRouteName() {
        return routeName;
    }

    public void setRouteName(String routeName) {
        this.routeName = routeName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getShiftGroupName() {
        return shiftGroupName;
    }

    public void setShiftGroupName(String shiftGroupName) {
        this.shiftGroupName = shiftGroupName;
    }

    public String getMaintenanceName() {
        return maintenanceName;
    }

    public void setMaintenanceName(String maintenanceName) {
        this.maintenanceName = maintenanceName;
    }

    public String getMaintenanceTypeCode() {
        return maintenanceTypeCode;
    }

    public void setMaintenanceTypeCode(String maintenanceTypeCode) {
        this.maintenanceTypeCode = maintenanceTypeCode;
    }

    public String getMaintenanceTypeName() {
        return maintenanceTypeName;
    }

    public void setMaintenanceTypeName(String maintenanceTypeName) {
        this.maintenanceTypeName = maintenanceTypeName;
    }

    public String getWorkStatusCode() {
        return workStatusCode;
    }

    public void setWorkStatusCode(String workStatusCode) {
        this.workStatusCode = workStatusCode;
    }

    public String getWorkStatusName() {
        return workStatusName;
    }

    public void setWorkStatusName(String workStatusName) {
        this.workStatusName = workStatusName;
    }

    public String getPlanStartTime() {
        return planStartTime;
    }

    public void setPlanStartTime(String planStartTime) {
        this.planStartTime = planStartTime;
    }

    public String getPlanEndTime() {
        return planEndTime;
    }

    public void setPlanEndTime(String planEndTime) {
        this.planEndTime = planEndTime;
    }

    public String getActualStartTime() {
        return actualStartTime;
    }

    public void setActualStartTime(String actualStartTime) {
        this.actualStartTime = actualStartTime;
    }

    public String getActualEndTime() {
        return actualEndTime;
    }

    public void setActualEndTime(String actualEndTime) {
        this.actualEndTime = actualEndTime;
    }

    public String getCompletedPersonName() {
        return completedPersonName;
    }

    public void setCompletedPersonName(String completedPersonName) {
        this.completedPersonName = completedPersonName;
    }

    public String getCompletedTime() {
        return completedTime;
    }

    public void setCompletedTime(String completedTime) {
        this.completedTime = completedTime;
    }
}
